<%--
  Created by IntelliJ IDEA.
  User: rovey
  Date: 2015/10/31
  Time: 10:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>

<!-- row -->
<div class="row">
    <article class="col-sm-12 col-md-12 col-lg-12 sortable-grid ui-sortable">

        <div class="jarviswidget well" id="wid-id-3" data-widget-colorbutton="false" data-widget-editbutton="false"
             data-widget-togglebutton="false" data-widget-deletebutton="false"
             data-widget-fullscreenbutton="false" data-widget-custonbutton="false" data-widget-sortable="false">

            <header>
                <!--<span class="widget-icon"> <i class="fa fa-comments"></i></span>-->
            </header>

            <div>
                <div class="jarviswidget-editbox">

                </div>
                <div class="jarviswidget-body">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <span class="font-md test-primary"><spring:message code="ROLE_REGISTER"/> </span>
                        </div>
                    </div>

                    <hr class="simple">

                    <div class="row">
                        <form id="fm_roleCreate" action="role/register" class="smart-form" method="post">
                            <div class="col-xs-12 col-sm-12 col-md-8 col-lg-8">
                                <fieldset>

                                    <section>
                                        <label class="label">
                                            <spring:message var="m_Name" code="ROLE_NAME"/>
                                            ${m_Name}
                                            <span id="valierrEmail" style="color:red">*</span>
                                        </label>
                                        <label class="input">
                                            <input type="text" name="name" id="txt_role_name" maxlength="<spring:message code='GLOBAL_FIELD_MAX'/>"
                                                   placeholder="<spring:message code='ROLE_PLACEHODER_ROLE_NAME'/>">
                                        </label>
                                    </section>
                                    <section>
                                        <label class="label">
                                            <spring:message var="m_Descriptioon" code="ROLE_DESCRIPTION"/>
                                            ${m_Descriptioon}
                                        </label>
                                        <label class="input">
                                            <input type="text" name="description" id="txt_role_desc" maxlength="<spring:message code='GLOBAL_FIELD_MAX'/>"
                                                   placeholder="<spring:message code='ROLE_PLACEHODER_ROLE_DISCRIPTION'/>">
                                        </label>
                                    </section>
                                    <div class="form-group">
                                        <label class="label">
                                            <spring:message var="m_eable" code="ROLE_ENABLE"/>
                                            ${m_eable}
                                        </label>
                                        <input type="hidden" id="txt_role_enabled" name="enabled" value=""/>

                                        <div class="btn-group">
                                            <button type="button" class="btn btn-default r-enabled" data-enabled="btn-success" data-value="ENABLE">
                                                <spring:message var="m_enable" code="ROLE_ENABLE"/>
                                                ${m_enable}
                                            </button>
                                            <button type="button" class="btn btn-default r-enabled" data-enabled="btn-danger" data-value="DISABLE">
                                                <spring:message var="m_disable" code="ROLE_DISABLE"/>
                                                ${m_disable}
                                            </button>
                                        </div>
                                    </div>
                                    <br/>

                                </fieldset>
                                <footer>
                                    <div class="text-right form-action-bar">
                                        <a href="#role" class="btn btn-default"><i class="fa fa-rotate-left"></i>
                                            <spring:message code="GLOBAL_BUTTON_CANCEL"/> </a>
                                        <button type="submit" class="btn btn-primary">
                                            <i class="fa fa-save"></i> <spring:message code="GLOBAL_BUTTON_SAVE"/>
                                        </button>

                                    </div>
                                </footer>
                                <div class="message">
                                    <i class="fa fa-check fa-lg"></i>
                                    <p>
                                        <spring:message code="GLOBAL_SUCCESS_ADDED"/>
                                    </p>
                                    <a href="javascript:void(0);" id="lk_addnew"><spring:message code="GLOBAL_ADD_ANOTHER"/></a>/
                                    <a href="#role"> <spring:message code="GLOBAL_TURNBACK"/></a>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>

            </div>

        </div>
    </article>

</div>
<script src="js/core/business/role/roleCreateInit.js"></script>
<html>
<head>
    <title></title>
</head>
<body>

</body>
</html>
